package com.terren.spider.db.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.terren.spider.db.basic.BasicServiceSupportImpl;
import com.terren.spider.db.service.DouyinService;
import com.terren.spider.entity.biz.Douyin;

@Service("douyinService")
public class DouyinServiceImpl extends BasicServiceSupportImpl implements DouyinService {
	private final String SQL_MAPPER = "douyinMapper.";

	@Override
	public void addDouyin(List<Douyin> items) throws Exception {
		basicDao.save(SQL_MAPPER+"addDouyin", items);
		
	}

	public List<Douyin> getDouyinList() throws Exception {
		
		return basicDao.findForList(SQL_MAPPER+"getDouyinList", null);
	}

	

}
